package com.google.gwt.sample.stockwatcher.client;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DecoratorPanel;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.VerticalPanel;

public class FrameWidget extends Composite implements ClickHandler{

	private HorizontalPanel rootPanel = new HorizontalPanel();
	private VerticalPanel leftPanel = new VerticalPanel();
	private VerticalPanel rightPanel =new VerticalPanel();
	
	private DecoratorPanel leftDecor = new DecoratorPanel();
	private DecoratorPanel rightTopDecor = new DecoratorPanel();
	private DecoratorPanel rightBottomDecor = new DecoratorPanel();
	
	private TextArea inputTextBox=new TextArea();
	private TextArea outputTextBox = new TextArea();
	private TextArea errorWindow =new TextArea();
	private ScrollPanel topScroll = new ScrollPanel();
	private ScrollPanel bottomScroll = new ScrollPanel();
	
	
	private CheckBox ChB1 = new CheckBox("import first package");
	
	public void onModuleLoad() {
		leftDecor.add(errorWindow);
		leftDecor.add(outputTextBox);
		leftDecor.add(inputTextBox);
		leftPanel.add(leftDecor);
		rootPanel.add(leftPanel);
		
		topScroll.add(ChB1);
		rightBottomDecor.add(bottomScroll);
		rightTopDecor.add(topScroll);
		rightPanel.add(rightTopDecor);
		rightPanel.add(rightBottomDecor);
		rootPanel.add(rightPanel);
	}
	@Override
	public void onClick(ClickEvent event) {
		// TODO Auto-generated method stub
		
	}
	
	
	
		// TODO Auto-generated method stub
		
	}
